<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据 变量 内存4</title>
</head>
<body>

<script type="text/javascript">

    var a = {age:123}

    function fun(obj){
        obj = {age:18}
        console.log("obj.age ="+obj.age,"a.age ="+a.age)
        console.log()
        return obj.age;
    }
    fun(a);
    console.log(a.age)
</script>
</body>
</html>